﻿using NLog;
using Scap.Info;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using zkemkeeper;

namespace Scap.Core
{
    public abstract class DeviceTaskHandler
    {
        protected Logger _logger = LogManager.GetCurrentClassLogger();
        protected DeviceTaskModel _model;
        protected CZKEM _zkDevice;
        protected ScapDevice _device;

        public abstract void Run();


        public DeviceTaskHandler(DeviceTaskModel model)
        {
            _model = model;
            _device = _model.Device;
            _zkDevice = _model.ZkDevice;
        }
    }
}
